<template>
  <ADrawerPro title="公告推送" width="800px" v-bind="$attrs" :open="props.open">
    <div class="content-container mini-scroll-bar">
      <AForm ref="formRef" :model="formState">
        <AFormItem label="推送范围" name="pushRange">
          <ARadioGroup v-model:value="formState.pushRange" name="radioGroup">
            <ARadio :value="1">全部推送</ARadio>
            <ARadio :value="2">自定义推送</ARadio>
          </ARadioGroup>
        </AFormItem>
      </AForm>
    </div>
  </ADrawerPro>
</template>

<script setup>
import { ref } from 'vue';
import { ADrawerPro } from '@/components/iteration/index.js';
import { useState } from '@/hooks/index.js';

defineOptions({
  inheritAttrs: false
});

const props = defineProps({
  open: { type: Boolean, default: false }
});

const formRef = ref();
const [formState, setFormState] = useState({ pushRange: 1 });
</script>

<style lang="scss" scoped>
.content-container {
  width: 100%;
  height: 100%;
  padding: 24px;
}
</style>
